package bdqn.t09.service.impl;

import bdqn.t09.dao.AsContactsMapper;
import bdqn.t09.pojo.AsContacts;
import bdqn.t09.service.AsContactsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AsContactsServiceImpl implements AsContactsService {
    @Resource
    private AsContactsMapper asContactsMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return asContactsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AsContacts record) {
        return asContactsMapper.insert(record);
    }

    @Override
    public int insertSelective(AsContacts record) {
        return asContactsMapper.insertSelective(record);
    }

    @Override
    public AsContacts selectByPrimaryKey(Long id) {
        return asContactsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AsContacts record) {
        return asContactsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AsContacts record) {
        return asContactsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<AsContacts> selectByPrimaryCustomId(Long customId) {
        return asContactsMapper.selectByPrimaryCustomId(customId);
    }
}